import mongoose from 'mongoose';

const ThemeSchema = new mongoose.Schema(
  {
    priority: Number, // 显示优先级
    name: { type: String, unique: true }, // 栏目名称
    des: String, // 栏目描述
    show: Boolean, // 是否展示,
    layout: Number, // 展示时的布局方式
    flush: Boolean,
    book_num: Number,
    create_time: Date
  },
  { versionKey: false }
);


const Theme = mongoose.model('Theme', ThemeSchema);

export { Theme };
